package com.ki.glasscase.svc.dao;


import com.ki.glasscase.svc.entity.Product;
import com.ki.glasscase.svc.entity.Tag;

import java.util.List;

/**
 * Created by Khacheresyants.L on 2/13/14.
 */

public interface ProductDAO {

    public Long create(Product product);
    public Long update(Product product);
    public Product getById(Long id);
    public Product getByOriginalId(String originalId);
    public List<Product> getAll(int limit, int ofset);
    public List<Product> searchByParam(String param, int limit, int offset);
    public List<Product> searchByTag(final Tag tag, int limit, int offset);
    public Integer getCountByParam(String param);

}
